package com.liu.stockmarket.model

import com.liu.stockmarket.ui.detail.DetailAdapter
import java.math.BigDecimal


/**
 * 单个股票的交易记录和盈亏信息
 */
data class StockDetailAndProfit(


    val profit: Profit,

    /**
     * 交易次数
     */
    val transactionCount: Int,

    /**
     * 总手续费
     */

    val handlingFee: BigDecimal,

    val details: List<DetailAdapter.Item>? = null
) {
    data class Profit(
        /**
         * 持有市值
         */
        val holdingMoney: BigDecimal,

        val todayProfit: BigDecimal = BigDecimal.ZERO,

        val todayProfitPercent: BigDecimal = BigDecimal.ZERO,

        val allProfit: BigDecimal = BigDecimal.ZERO,

        val allProfitPercent: BigDecimal = BigDecimal.ZERO,
        val dividends:BigDecimal?=null,
    )
}